package org.xiexiake.infrastructure.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xiexiake.dao.entity.User;
import org.xiexiake.dao.mapper.UserDao;
import org.xiexiake.infrastructure.api.UserService;

@Service
public class UserServiceImpl implements UserService {

  @Autowired
  private UserDao userDao;

  @Override
  public User findById(int id) {
    User user = userDao.qa(id);
    return user;
  }
}
